diff -Naur kqemu-1.4.0pre1-orig/kqemu-linux.c kqemu-1.4.0pre1/kqemu-linux.c
--- kqemu-1.4.0pre1-orig/kqemu-linux.c	2008-05-30 21:33:34.000000000 +0100
+++ kqemu-1.4.0pre1/kqemu-linux.c	2010-07-27 19:16:58.000000000 +0100
@@ -30,6 +30,7 @@
 #include <asm/processor.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
+#include <linux/sched.h>
 
 #include "kqemu-kernel.h"
 
